extends Area3D

func _on_body_entered(body):
	if body.get_class() == "VehicleBody3D":
		for child in body.get_children():
			if child.get_class() == "StaticBody3D":
				child.damage = child.damage * 2
		get_parent().queue_free()
	elif body.get_class() == "StaticBody3D":
		body.damage = body.damage * 2
		get_parent().queue_free()
